﻿using System;
using System.Collections.Generic;

namespace SlamCms.Data
{
	[Serializable]
	public class User : ICloneable
	{
		public User()
		{
			this.Groups = new List<Group>();
			this.OwnedTags = new List<Tag>();
			this.OwnedFeatureLocations = new List<FeatureLocation>();
		}

		public int UserId { get; set; }
		public string UserName { get; set; }
		public string Name { get; set; }
		public string Email { get; set; }
		public string Language { get; set; }

		public virtual ICollection<Group> Groups { get; set; }
		public virtual ICollection<Tag> OwnedTags { get; set; }
		public virtual ICollection<FeatureLocation> OwnedFeatureLocations { get; set; }

		public object Clone()
		{
			return this.MemberwiseClone();
		}
	}
}
